import Mock from 'mockjs'

const data = Mock.mock({
  "list|10": [{
    "title": "@ctitle",
    "id": "@id",
    "url": '@image(100x100, @color)',
    "desc": "@cword(10, 20)",
    "price|10-1000": 1,
  }]
})


Mock.mock('/api/list', () => {
  return {
    code: 200,
    data: data.list
  }
})